home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000233_news@newsmaster….columbia.edu _Fri Jun 26 10:43:47 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA22614
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 26 Jun 1998 10:43:46 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA29261
  7.     for kermit.misc@watsun; Fri, 26 Jun 1998 10:43:46 -0400 (EDT)
  8. Path: news.columbia.edu!panix!news-peer.gip.net!news.gsl.net!gip.net!howland.erols.net!news-feed1.tiac.net!posterchild2!news@tiac.net
  9. From: "Art L." <art1958@yahoo.com>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Get port of previous failed set line command
  12. Date: Fri, 26 Jun 1998 10:41:08 -0400
  13. Organization: The Internet Access Company, Inc.
  14. Lines: 18
  15. Message-ID: <3593B304.716C@yahoo.com>
  16. NNTP-Posting-Host: ccraft.tiac.net
  17. Mime-Version: 1.0
  18. Content-Type: text/plain; charset=us-ascii
  19. Content-Transfer-Encoding: 7bit
  20. X-Mailer: Mozilla 3.0Gold (Win95; I)
  21. Xref: news.columbia.edu comp.protocols.kermit.misc:8924
  22.  
  23. I have a kermit script which then "takes" from a file called kermit.dat.
  24. kermit.dat contains "set line /dev/tty1A" (or what ever the local modem
  25. port may be).  If the modem is not available the parent script is aware
  26. of this because \v(line) equals /dev/tty.  
  27.  
  28. What I would like to do is add some code to the parent script to keep
  29. attempting to set line /dev/ttysomething every 10 seconds until it is
  30. available.  However the parent script does not know what the 
  31. ttysomething should be. There does not seem to be a built in variable 
  32. which contains this information.
  33.  
  34. Currently I have my take kermit.dat command in a loop from which I 
  35. break out of if \v(line) is something other than /dev/tty.  What I
  36. really want to do is to read the lock file (ie /usr/spool/uucp/LCK..1a)
  37. to get the process ID (and therefore the program and user) of the
  38. locking process.
  39.  
  40. I am using CKermit 6.1.192 and 5A(190) under SCO UNIX and XENIX